package aad.storyboard.controller;

import aad.storyboard.R;
import aad.storyboard.model.Scene;
import aad.storyboard.model.Story;
import android.app.Activity;
import android.content.Context;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ViewFlipper;

public class NavigationOnClickListener implements OnClickListener{
	
	Scene currentScene;
	boolean forward=true;;
	private static Context context;
	private static Activity activity;
	private static Handler mHandler=new Handler();
	private static View current;
	private static View next;
	private static ViewFlipper flipper;
	private AudioPlayer player;
	
	public NavigationOnClickListener(Activity a, ViewFlipper flip)	
	{
		activity=a;
		flipper=flip;
	}
	
	@Override
	public void onClick(View view) {		
		((NavigationButton) view).execute();
		//Transitions between scenes
		//-------------------------------------------------
		//current=activity.findViewById(R.id.flipper);		
		//mHandler.removeCallbacks(mFadeTimeTask);	    	
       // mHandler.postDelayed(mFadeTimeTask, 100);
		//SlideTransition s=new SlideTransition(20, flipper, activity);
		  // s.execute();
		//-------------------------------------------------
        
	}
	
	private static Runnable mFadeTimeTask = new Runnable() {
		   @Override
		public void run() {			   
			   //working FadiInFadeOutTransition f=new FadiInFadeOutTransition(current,current, 20);
			   //f.execute();			  
			  
		   }
		};
	

}
